function buyFlagFormatter_point(value, row) {
		if (row.orderFlag == 1) {
			return "补单";
	} else {
		return row.buyFlag;
	}
}
//购买商品
function goodsFormatter(value, row) {
	return row.buyTotalNum+row.buyNumUnit;
}
//已完成数量
function alreadyFinishNumFormatter(value, row) {
	return row.alreadyFinishNum+row.buyNumUnit;
}
//实际获得
function actualGetNumFormatter(value, row) {
	return row.actualGetNum+row.buyNumUnit;
}
//订单金额
function orderTotalMoneyFormatter(value, row) {
	return row.orderTotalMoney+"元";
}
function payStatusFormatter(value, row) {
	if (row.payStatus == 1) {
        return ' 已支付 ';
    } else {
        return ' 未支付';
    }
}
function orderStatusFormatter(value, row) {
	if (row.orderStatus == -1) {
        return ' 已取消 ';
    } else if (row.orderStatus == 10 || row.orderStatus == 30) {
        return ' 未完成';
    } else {
    	 return ' 已完成';
    }
}
// 加载table 数据
$(function(){
	var rowId = $("#rowId").val();
    $("#dataTable").bootstrapTable({ 
    	url: "/order/replenishList.json?rowId="+rowId,
    	method:"get",
    	pagination:true,
    	sidePagination:"server",
    	queryParams: function(params) {
            return $.extend({}, params, parseJson(decodeURIComponent($("#dataForm").serialize())));     
        }
   }); 
})
//查询
function findData(){
	$("#dataTable").bootstrapTable("refresh",{} ); 
}
function goBack(){
	window.location.href="/order/list";
}